home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / npri.z / npri
Text File  |  1998-10-20  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4. NNNNPPPPRRRRIIII((((1111))))                                                                NNNNPPPPRRRRIIII((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      npri - modify the scheduling priority of a process
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      nnnnpppprrrriiii [ ----wwww ] | [ ----rrrr priority [ ----ssss policy ] ] | [ ----nnnn nice ] | [ ----tttt slice ]
  13.      [ ----pppp pid ]
  14.      nnnnpppprrrriiii [ ----wwww ] | [ ----rrrr priority [ ----ssss policy ] ] | [ ----nnnn nice ] | [ ----tttt slice ]
  15.      [ cmd args ... ]
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      This command allows the super-user to modify certain scheduling
  19.      parameters of a process or to create a new process with specific
  20.      scheduling parameters.  For a detailed description of how the parameters
  21.      affect the scheduling of a process, please see the _s_c_h_e_d__s_e_t_s_c_h_e_d_u_l_e_r(2)
  22.      manual page.  If _n_p_r_i is invoked without reference to a specific process
  23.      or command to execute, it simply invokes a copy of the user's shell, as
  24.      specified by the SHELL environment variable, with the scheduling
  25.      characteristics specified.
  26.  
  27. OOOOPPPPTTTTIIIIOOOONNNNSSSS
  28.      The following options are supported:
  29.  
  30.      ----wwww        This option makes the process weightless. A weightless process
  31.                executes at a priority strictly less than any other process in
  32.                the system.
  33.  
  34.      ----rrrr _p_r_i_o_r_i_t_y
  35.                This option sets the priority of a process. For real-time
  36.                policies (see -s) the valid priority range is 0 to 255, while
  37.                the time-share policy accepts priorities ranging from 1 to 40.
  38.                When used without the -s option, npri will attempt to reset the
  39.                priority of the specified process according to its current (or
  40.                inherited) policy.
  41.  
  42.      ----ssss _p_o_l_i_c_y This option sets the scheduling policy of a process. The
  43.                supported policies are FIFO and RR for real-time and TS for
  44.                timeshare. Both the policy and priority will be inherited by
  45.                any new children of the process.  Care should be used when
  46.                assigning real-time policies, since such a process is not
  47.                preemptable by normal interactive processes.  Refer to
  48.                _r_e_a_l_t_i_m_e(5) for more details.
  49.  
  50.      ----nnnn _n_i_c_e   This option sets the absolute nice value of a process.  The
  51.                nice value affects how normal UNIX priority calculations are
  52.                made.  The allowable range of nice values is 0 to 39.  Refer to
  53.                _n_i_c_e(2) for more information.
  54.  
  55.      ----tttt _s_l_i_c_e  This option sets the time-slice for the process, in terms of
  56.                the basic kernel clock frequency (called _t_i_c_k_s).  The 4D Series
  57.                machines use a clock frequency of 100 hertz, so one _t_i_c_k is 10
  58.                milliseconds.  For example, a slice value of 3 gives a 30
  59.                millisecond time slice.  The time slice value will be inherited
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. NNNNPPPPRRRRIIII((((1111))))                                                                NNNNPPPPRRRRIIII((((1111))))
  71.  
  72.  
  73.  
  74.                by any new children of the process.
  75.  
  76.      ----hhhh _p_r_i_o_r_i_t_y
  77.                This option has been deprecated and will be removed in a future
  78.                release.  Please use the -r and -s options to achieve the
  79.                desired effect.
  80.  
  81.      ----pppp _p_i_d    This option names a specific process whose priority is to be
  82.                altered.  This makes it possible to change priorities of a
  83.                running process.
  84.  
  85. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  86.      nice(2), schedctl(2), sched_setscheduler(2), realtime(5).
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.